<template>
    <el-container>
        <el-header>
            <el-row>
                <el-col :span="6">
                    <div class="grid-content bg-purple">
                        <div class="header-left">
                            <a href="javascript:;">
                                <img src="//cimg.zhaopin.cn/img/newIndexImages/logo.png" alt="">
                            </a>
                        </div>
                    </div>
                </el-col>
                <el-col :span="18">
                    <div class="grid-content bg-purple-light">
                        <div class="header-right">
                            <div>
                                <a href="javascript:;" @click="backhome">
                                <span class="el-icon-s-home"></span>
                                首页
                            </a>
                            </div>
                            <div>
                                <a href="javascript:;">
                                <span class="el-icon-s-data"></span>
                                文章列表
                            </a>
                            </div>
                            <div>
                                <a href="javascript:;" @click="album">
                                <span class="el-icon-picture"></span>
                                云相册
                            </a>
                            </div>
                            <div>
                                <a href="javascript:;">
                                <span class="el-icon-user-solid"></span>
                                写文章
                            </a>
                            </div>
                            <div>
                                <a href="javascript:;">
                                <span class="el-icon-message-solid"></span>
                                留言板
                            </a>
                            </div>
                        </div>
                    </div>
                </el-col>
            </el-row>
        </el-header>
        <el-main>
            <div class="main-header">
                    <div class="main-header-left">
                        <span class="el-icon-s-data"></span>
                        文章列表
                    </div>
                    <div class="main-header-mid">
                        <el-input v-model="searchArticle" placeholder="搜索文章..."></el-input>
                    </div>
                    <div class="main-header-right">
                        共11篇
                    </div>
            </div>
            <div class="main-mid">

            </div>
            <div class="main-bottom">

            </div>
        </el-main>
        <el-footer>
            <div class="footer-left"></div>
            <div class="footer-mid"></div>
            <div class="footer-right"></div>
        </el-footer>
    </el-container>
</template>

<script>
export default {
    data() {
        return {
            // 搜索文章的搜索框
            searchArticle: '',
        }
    },
    methods: {
        // 跳转回主页面
        backhome() {
            this.$router.push('/');
        },
        album() {
            this.$router.push('/album')
        }
    }
}
</script>

<style lang="less" scoped>
    .el-header{
        
        background-color: #000;
        .header-left{
            margin-top: 12px;
           
        }
        .header-right{
            float: right;
            margin-right: 250px;
             div{    
                float: left;   
                font-size: 16px;
                height: 60px;
                line-height: 60px;
                margin-right: 40px;
                a{
                    text-decoration: none;
                    color: #fff;
                }
            }
        }
    }
    .el-main{
        width: 1140px;
        height: 1000px;
        margin: 0 auto;
        margin-top: 50px;
        border-radius: 10px;
        background-color: #eee;
        .main-header{
            height: 50px;
            .main-header-left{
                float: left;
                height: 50px;
                line-height: 50px;
            }
            .main-header-right{
                float: right;
                height: 50px;
                line-height: 50px;
            }
            .main-header-mid{
                
                margin-left: 50px;
                margin-top: 5px;
                float: left;
                width: 300px;
            }
            
        }
        .main-mid{
            height: 1px;
            background-color: #666;
        }
    }
    .el-footer{
        margin-top: 50px;
        height: 200px !important;
        background-color: #444;
    }
</style>